<extend name="Base/base" />
<block name="button">
	
	<button class="btn btn-primary" type="submit" form="form"><i class="fa fa-save"></i> {:L('text_save')}</button>
</block>
<block name="body">
	<if condition="$msg">
		<div class="alert alert-danger alert-dismissible fade in" role="alert">
		      <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
		      {$msg.warning}

		    </div>
	</if>
	<div class="panel panel-default">
		<div class="panel-heading">
			<h4><i class="fa fa-pencil fa-fw"></i>  {$heading_title|default=L('heading_title')}</h4>
		</div>
		<div class="panel-body">
			<form action="" method="post" id="form" class="form-horizontal">
				<div class="form-group">
					<label for="input-image" class="control-label col-sm-2">{:L('entry_image')}</label>
					<div class="col-sm-10">
						<a href="" id="thumb-image" data-toggle="image" class="img-thumbnail"><img src="{$user['thumb']}" alt="" title="" data-placeholder="{$user['placeholder']}" /></a>
          				<input type="hidden" name="image" value="{$user['image']|default=''}" id="input-image" />
					</div>
				</div>
				<div class="form-group required">
					<label for="input-username" class="col-sm-2 control-label">{:L('entry_username')}</label>
					<div class="col-sm-10">
						<input type="text" value="{$user.username|default=''}" name="username" class="form-control" placeholder="{:L('entry_username')}">
						<if condition="isset($msg['username'])">
						{$msg.username|danger_msg=###}
						</if>
					</div>
				</div>
				<div class="form-group required">
					<label for="input-nickname" class="col-sm-2 control-label">{:L('entry_nickname')}</label>
					<div class="col-sm-10">
						<input value="{$user.nickname}" type="text" name="nickname" class="form-control" placeholder="{:L('entry_nickname')}">
						<if condition="isset($msg['nickname'])">
						{$msg.nickname|danger_msg=###}
						</if>
					</div>
				</div>
				<div class="form-group required">
					<label for="input-password" class="col-sm-2 control-label">{:L('entry_password')}</label>
					<div class="col-sm-10">
						<input value="" id="input-password" type="password" name="password" class="form-control" placeholder="{:L('entry_password')}">
						<if condition="isset($msg['password'])">
						{$msg.password|danger_msg=###}
						</if>
					</div>					
				</div>
				<div class="form-group required">
					<label for="input-new-password" class="col-sm-2 control-label">{:L('entry_new_password')}</label>
					<div class="col-sm-10">
						<input id="input-new-password"  value="" type="password" name="new_password" class="form-control" placeholder="{:L('entry_password')}">
						<if condition="isset($msg['new_password'])">
						{$msg.new_password|danger_msg=###}
						</if>
					</div>					
				</div>
				<div class="form-group required">
					<label for="input-confirm-password" class="col-sm-2 control-label">{:L('entry_confirm_password')}</label>
					<div class="col-sm-10">
						<input id="input-confirm-password" value="" type="password" name="confirm_password" class="form-control" placeholder="{:L('entry_confirm_password')}">
						<if condition="isset($msg['confirm_password'])">
						{$msg.confirm_password|danger_msg=###}
						</if>
					</div>					
				</div>
			</form>
			
		</div>
		
	</div>
</block>
